<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>login</title>
    <!-- 导入 LayUI 的样式 -->
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css" />
    <!-- 引入自己的css -->
    <link rel="stylesheet" href="./assets/css/login.css" />
    <!-- 导入 Layui 的JS文件 -->
    <script src="./assets/lib/layui/layui.all.js"></script>
    <!-- 引入jquery -->
    <script src="./assets/lib/jquery.js"></script>
    <!-- 引入baseAPI.js -->
    <script src="/assets/js/baseAPI.js"></script>
    <!-- 引入自己的js -->
    <script src="./assets/js/login.js"></script>
  </head>
  <body>
    <!-- 头部的 Logo 区域 -->
    <div class="layui-main">
      <img src="./assets/images/logo.png" alt="" />
    </div>

    <!-- 登录注册区域 -->
    <div class="form-box">
      <div class="title-box"></div>
      <!-- 登录区域 -->
      <div class="login-box">
        <form class="layui-form" action="" id="form-login">
          <div class="layui-form-item">
            <i class="layui-icon layui-icon-username"></i>
            <input type="text" name="username" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input" id="login-username" value="bouboo" />
          </div>
          <div class="layui-form-item">
            <i class="layui-icon layui-icon-password"></i>
            <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input" id="login-password" value="111111" />
          </div>
          <div class="layui-form-item">
            <button type="submit" class="layui-btn layui-btn-fluid" lay-submit>提交</button>
          </div>
          <div class="layui-form-item layui-form-link">
            <a href="javascript:;" id="link_reg">去注册账号</a>
          </div>
        </form>
      </div>

      <!-- 注册区域 -->
      <div class="reg-box">
        <form class="layui-form" action="" id="form-reg">
          <div class="layui-form-item">
            <i class="layui-icon layui-icon-username"></i>
            <input type="text" name="username" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input" id="reg-username" />
          </div>
          <div class="layui-form-item">
            <i class="layui-icon layui-icon-password"></i>
            <input type="password" name="password" required lay-verify="required|pwd" placeholder="请输入密码" autocomplete="off" class="layui-input" id="reg-password" />
          </div>
          <div class="layui-form-item">
            <i class="layui-icon layui-icon-password"></i>
            <input type="password" name="repassword" required lay-verify="required|pwd|rePwd" placeholder="请再次输入密码" autocomplete="off" class="layui-input" />
          </div>
          <div class="layui-form-item">
            <button type="submit" class="layui-btn layui-btn-fluid" lay-submit>提交</button>
          </div>
          <div class="layui-form-item layui-form-link">
            <a href="javascript:;" id="link_login">去登录账号</a>
          </div>
        </form>
      </div>
    </div>
  </body>
</html>
